﻿<navigation:Page  x:Class="TotalSystems.Store.Views.BaseInfo.DegreeImportantStuff" 
    xmlns:my="clr-namespace:TotalSystems.Core.Controls;assembly=TotalSystems.Core" 
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           mc:Ignorable="d"  xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
           d:DesignWidth="2000" d:DesignHeight="800" FlowDirection="RightToLeft"
           Title="درجه بندی اهمیت کالا">
    <Grid x:Name="LayoutRoot"  >
        <StackPanel>
            <Canvas Height="45">
                <telerik:RadButton Height="35" Width="35" Name="Btn_Add" FlowDirection="LeftToRight" Cursor="Hand" ToolTipService.ToolTip="ایجاد" Canvas.Left="6" Canvas.Top="6">
                    <telerik:RadButton.Background>
                        <ImageBrush ImageSource="/TotalSystems.Base;component/Images/Icons/Form_Add.png" />
                    </telerik:RadButton.Background>
                </telerik:RadButton>
                <telerik:RadButton Height="35" Width="35" Name="Btn_Edit" FlowDirection="LeftToRight" Cursor="Hand" ToolTipService.ToolTip="ویرایش" Canvas.Left="43" Canvas.Top="6">
                    <telerik:RadButton.Background>
                        <ImageBrush ImageSource="/TotalSystems.Base;component/Images/Icons/Form_Edit.png" />
                    </telerik:RadButton.Background>
                </telerik:RadButton>
                <telerik:RadButton Height="35" Width="35" Name="Btn_Delete" FlowDirection="LeftToRight" Cursor="Hand" ToolTipService.ToolTip="حذف" Canvas.Left="80" Canvas.Top="6">
                    <telerik:RadButton.Background>
                        <ImageBrush ImageSource="/TotalSystems.Base;component/Images/Icons/Form_Delete.png" />
                    </telerik:RadButton.Background>
                </telerik:RadButton>
                <telerik:RadButton Height="35" Width="35" Name="Btn_Help" FlowDirection="LeftToRight" Cursor="Hand" ToolTipService.ToolTip="راهنمای فرم" Canvas.Left="117" Canvas.Top="6">
                    <telerik:RadButton.Background>
                        <ImageBrush ImageSource="/TotalSystems.Base;component/Images/Icons/Form_Help.png" />
                    </telerik:RadButton.Background>
                </telerik:RadButton>
            </Canvas>

            <Canvas Height="400">
                <CheckBox Content=" : وضعیت " IsChecked="{Binding DegreeImportantStuffEntity.STR_Dis_Active,Mode=TwoWay}"  ToolTipService.ToolTip="وضعیت رکورد" Height="16" Name="CHK_STR_Dis_Active" IsEnabled="False" Canvas.Left="337" Canvas.Top="101" Visibility="Collapsed" />
                <CheckBox Content=" : Is Expand " IsChecked="{Binding DegreeImportantStuffEntity.STR_Dis_IsExpand,Mode=TwoWay}"  ToolTipService.ToolTip="وضعیت باز یا بسته بودن نود" Height="16" Name="CHK_STR_Dis_IsExpand" IsEnabled="False" Canvas.Left="430" Canvas.Top="101" Visibility="Collapsed" />
                <my:LabeledText Name="labelText1" Text="{Binding DegreeImportantStuffEntity.STR_Dis_ID,Mode=TwoWay}" Width="240" LableWidth="100"  IsMandatory="True" LabelText="کد درجه اهمیت کالا" Canvas.Left="337" Canvas.Top="7" Visibility="Collapsed" />
                <my:LabeledText IsMandatory="True" Text="{Binding DegreeImportantStuffEntity.STR_Dis_Parent_ID_fk,Mode=TwoWay}" LabelText="کد والد" LableWidth="100" Name="labeledText1"  Width="240" Canvas.Left="592" Canvas.Top="6" Visibility="Collapsed" />
                <my:LabeledText IsMandatory="True" Text="{Binding DegreeImportantStuffEntity.STR_Dis_Name,Mode=TwoWay}"  LabelText="نام درجه اهمیت کالا" LableWidth="100" Name="labeledText2"  Width="240" Canvas.Left="337" Canvas.Top="38" Visibility="Collapsed" />
                <my:LabeledText LabelText="توضیحات" Text="{Binding DegreeImportantStuffEntity.STR_Dis_Note,Mode=TwoWay}"  LableWidth="100" Name="labeledText3"  Width="495" Canvas.Left="337" Canvas.Top="69" Visibility="Collapsed" />
                <my:BaseDefenitionsTreeView AutoGenerateFields="True" Height="300" ItemsSource="{Binding DegreeImportantStuffEntitys}" SelectedItem="{Binding SelectedDegreeImportantStuffEntitys,Mode=TwoWay}" UserAddedNodes="{Binding UserAddedNodes}" UserEditedNodes="{Binding UserEditedNodes}" UserRemovedNodes="{Binding UserRemovedNodes}" CanSelectedNodeBeDeleted="{Binding CanUserRemoveNode}" CanSelectedNodeBeEdited="{Binding CanUserEditNode}"
                                            Name="baseDefenitionsTreeView1" Width="885" NamePropertyName="STR_Dis_Name" IsTabStop="False" IDPropertyName="STR_Dis_ID" IsActivePropertyName="STR_Dis_Active" IsExpandedPropertyName="STR_Dis_IsExpand" ParentIdPropertyName="STR_Dis_Parent_ID_fk" ModifyDatePropertyName="STR_Dis_ModifyDate" DeleteDatePropertyName="STR_Dis_DeleteDate" Canvas.Left="6" Canvas.Top="6" >
                    <my:BaseDefenitionsTreeView.ItemsTemplate>
                        <DataTemplate>
                            <StackPanel>
                                <Grid>
                                    <TextBlock Text="نام فیلد:" />
                                    <TextBox Text="{Binding STR_Dis_Name}" IsReadOnly="True" Height="23" Width="60" />
                                </Grid>
                            </StackPanel>
                        </DataTemplate>
                    </my:BaseDefenitionsTreeView.ItemsTemplate>
                    <my:BaseDefenitionsTreeView.EditItemsTemplate>
                        <DataTemplate>
                            <StackPanel>
                                <Grid>
                                    <TextBlock Text="dsfd sf:" />
                                    <TextBox Text="{Binding STR_Dis_Name,Mode=TwoWay}" Height="23" Width="60" />
                                </Grid>
                            </StackPanel>
                        </DataTemplate>
                    </my:BaseDefenitionsTreeView.EditItemsTemplate>
                </my:BaseDefenitionsTreeView>

                <telerik:RadButton Height="35" Width="35"  Name="Btn_Accept" Command="{Binding UpdateCommand,Mode=TwoWay}" VerticalAlignment="Top"  Cursor="Hand" ToolTipService.ToolTip="تایید" Canvas.Left="756" Canvas.Top="101" Visibility="Collapsed">
                    <telerik:RadButton.Background>
                        <ImageBrush ImageSource="/TotalSystems.Base;component/Images/Icons/Form_Save.png" />
                    </telerik:RadButton.Background>
                </telerik:RadButton>
                

            </Canvas>
            <telerik:RadButton Height="35" Width="35" Command="{Binding SearchCommand}" Name="Btn_Cancel" VerticalAlignment="Top" FlowDirection="LeftToRight" Cursor="Hand" ToolTipService.ToolTip="انصراف" Canvas.Left="797" Canvas.Top="101" >
                <telerik:RadButton.Background>
                    <ImageBrush ImageSource="/TotalSystems.Base;component/Images/Icons/Form_Cancel.png" />
                </telerik:RadButton.Background>
            </telerik:RadButton>
        </StackPanel>
    </Grid>
</navigation:Page>
